//
//  ViewController.m
//  GHKeyBoard
//
//  Created by jansh on 16/1/11.
//  Copyright © 2016年 gh. All rights reserved.
//

#import "ViewController.h"
#import "GHKeyBoardView.h"

#define kScreenWidth [UIScreen mainScreen].bounds.size.width
#define kScreenHeight [UIScreen mainScreen].bounds.size.height

@interface ViewController ()

@property (nonatomic, strong) GHKeyBoardView *keyBoard;

@property (nonatomic, strong) UITextField *textF;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    self.textF = [[UITextField alloc] initWithFrame:CGRectMake(10, 20, 250, 30)];
    self.textF.backgroundColor = [UIColor lightGrayColor];
    [self.view addSubview:_textF];
    
    self.keyBoard = [[GHKeyBoardView alloc] initWithTextField:self.textF];
    self.keyBoard.backgroundColor = [UIColor yellowColor];
    self.textF.inputView = self.keyBoard;

    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
